# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=nymphcast-client
pkgver=0_git20200310
pkgrel=0
_commit="0b494a446b3c215ca60dafa2678703b3f5f6e392"
arch="all !armv7 !mips !mips64" # armv7, mips blocked by nymphcast
url="http://nyanko.ws/product_nymphcast.php"
pkgdesc="Test client for nymphcast"
license="BSD-3-Clause"
depends="avahi"
makedepends="qt5-qtbase-dev nymphcast-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/MayaPosch/NymphCast/archive/$_commit.tar.gz"
options="!check" # No tests
builddir="$srcdir/NymphCast-$_commit"

prepare() {
	default_prepare

	mkdir "$builddir"/player/NymphCastPlayer/build
}

build() {
	cd "$builddir"/player/NymphCastPlayer/build
	qmake-qt5 ..
	make
}

package() {
	cd "$builddir"/player/NymphCastPlayer/build
	install -Dm755 NymphCastPlayer "$pkgdir"/usr/bin/NymphCastPlayer
}

sha512sums="14d79b6b34e3e05fc6ec56a2f8a8f0601be6342baa645062e663e0e6d115b1895f342ed3ceee2157339e95ce78e3de13156585ba77635e91fde09f90b032845b  nymphcast-client-0b494a446b3c215ca60dafa2678703b3f5f6e392.tar.gz"
